package com.oracleoaec.service.impl;

import java.util.List;

import com.oracleoaec.dao.RecordDao;
import com.oracleoaec.dao.impl.RecordDaoImpl;
import com.oracleoaec.entity.Record;
import com.oracleoaec.service.RecordService;

public class RecordServiceImpl implements RecordService{
	
	RecordDao recordDao;
	public RecordServiceImpl() {
		recordDao=new RecordDaoImpl();
	}
	public Record userRentCar(String carIdAndUserId){
		return recordDao.userRentCar(carIdAndUserId);
	}
	@Override
	public List<Record> queryAllUserRecord(String userId) {
		
		return recordDao.queryAllUserRecord(userId);
	}
}